﻿using oueb;
using oueb.react;
using suamod.fuwu;

namespace suamodhost
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");

            var oserve = new OuebServer("http://127.0.0.1:10201");
            oserve.UseCors(cors => cors.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeaders());
            oserve.AddRoute(new SuaModule());
            oserve.AddRoute(ReactWebModule.Open("www"));
            oserve.Listen();

            lock (oserve) while (oserve.Runing) Monitor.Wait(oserve, 500);
        }
    }
}
